home *** CD-ROM | disk | FTP | other *** search
- regc(0, "TFACTOR")
- regc4f( 5, %daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a )
- regc4f( 7, %ambient_r, %ambient_g, %ambient_b, %ambient_a )
- pshader("
-
- ps_1_1
-
- tex t0 ;texture (RGB - color, A<0-127> - Opacity, A<128-255> - Specular Mask)
- tex t1 ;RGB:Terrain color, A:Terrain lightmap
-
-
- mul r0.rgb, t0, t1
- +mad_sat r0.a, v0.b, c7.b, c7.a ;Diffuse Lighting + Map Ambient = Set Diffuse
-
- mul r0.rgb, r0, c5
-
- mul r0.rgb, r0, r0.a
- +mov r0.a, c0.a
-
- ")
-
-
-